<?php if (!defined('THINK_PATH')) exit();?><html>
<head>

</head>

<body>

<h1>欢迎 <?php echo (session('username')); ?> <?php echo (session('uid')); ?> <a href="/myteam/Index/logout">退出</a> <?php echo (date("Y-m-d",$time)); ?></h1>

<form action="/myteam/Index/borrow_instrument" method="post">
<table border="1"  width="400" cellpadding="10">
	<input type="hidden" name="iid" value="<?php echo ($data["id"]); ?>"  />
   <tr> <th>出厂编号</th><th><?php echo ($data["inum"]); ?></th></tr>
     <tr><th>仪器型号</th><th><?php echo ($data["iname"]); ?></th></tr>
	 <tr><th>仪器类型</th><th><?php echo ($data["itype"]); ?></th></tr>
	 <tr><th>制造商</th><th><?php echo ($data["buid"]); ?></th></tr>
	 <tr><th>购置时间</th><th><?php echo ($data["btime"]); ?></th></tr>
	 <tr><th>检测证书</th><th><?php echo ($data["icnum"]); ?></th></tr>
	 <tr><th>检测时间</th><th><?php echo (date("Y-m-d",$data["jztime"])); ?></th></tr>
	 <tr><th>有效时间</th><th><?php echo (date("Y-m-d",$data["yxtime"])); ?></th></tr>
	 <tr><th>状态</th>  <th> <?php switch($data["istatus"]): case "0": ?>库存<?php break;?>
		<?php case "1": ?>借出<?php break;?>
		<?php case "2": ?>送检<?php break;?>
        <?php default: endswitch;?></th></tr>
  <tr><th>工地：<input type="text" name="bat"  /></th><th ><button  type="submit" value="Submit" <?php if(($data["istatus"]) != "0"): ?>disabled="disabled"<?php endif; ?>>借用</button></th></tr>

  
</table>
</form>

</body>


</html>